package designpatterns.decorator;

/**
 * @author miweidong
 * @date 2021-08-04 14:22
 */
public class Client {
    public static void main(String[] args) {
        House house = new ZSHouse();
        house = new DecorationsLight(house);
        house = new DecorationsTV(house);
        house.display();
        System.out.println("------------------------");

        House house1 = new LSHouse();
        house1 = new DecorationsLight(house1);
        house1 = new DecorationsTV(house1);
        house1.display();
    }
}
